<?php
  require_once('tpl/header.php');
?>
<?php 
    require_once('../system/loginCheck.php');
    require_once('../system/dbConn.php');
    connect();
    ?>
    <h1>欢迎管理员<?php echo $_SESSION["adminname"]; ?>使用本系统</h1>
    <?php
    $cid=$_GET["cid"];

    //删除记录
    $sql="delete from comments where cid=$cid";
    $result=mysql_query($sql);//整数
    if ($result==1) {
    	# code...
        echo "删除成功,3秒后跳转到列表页";
        header("refresh:3;url='commentList.php'");
    }
    else
        echo "删除失败";?>




   


<?php
  require_once('tpl/footer.php');
?>